home *** CD-ROM | disk | FTP | other *** search
- SPLIT.EXE is a program that splits files. Given an input file you can copy it
- to as many output files as you would like so long as everything fits on the
- command line. Output files obtained from SPLIT can later be concatenated with
- the DOS copy command as shown below. The program was written with Turbo C,
- however, it compiles with only minor modification under Microsoft C version 5.0
- and Quick C version 1.0. (Information on how to do that is contained in the
- comment that heads the source code). In fact, the SPLIT.EXE file contained in
- the archive file with this documentation was compiled with MSC 5.0 because it
- runs VERY much faster.
-
- The syntax to SPLIT is exhibited here by examples; a formal syntax is provided
- to the user when the program is run without parameters. The first parameter to
- the program is an input file which is to be copied to the file names that are
- given as additional parameters. The last parameter specifies the ratios that
- the sizes of the output files have to the size of the input file. Any logical
- (sane) combination of drive, path and device names may be given as input and
- output files, however, specifying the input filename again as one of the output
- files is asking for trouble. The command
-
- SPLIT split.arc split.1 split.2 2:3
-
- would copy the file split.arc to the two files split.1 and split.2 and the size
- of split.1 would be 2/5 the size of split.arc. Likewise, split.2 would be 3/5
- the size of split.arc. Suppose you had the file bigfile.txt on your hard disk
- with size 1,234,567 bytes and you had two formated 360K floppies in drives A:
- and B: and also enough room on your hard disk to accommodate the third output
- file, big3, then the command
-
- SPLIT bigfile.txt a:big1 b:big2 big3 362496:362496:509575
-
- would completely fill both floppies and the 509575 byte file, big3, would reside
- on the hard disk in the current directory with bigfile.txt. Notice that the
- numbers 362496, 362496, and 509575 sum to 1234567. It is required that the
- ratio numbers sum like this if you wish to assure the proper working of a split
- of this type. You could put the three output files together into another file
- alsobig.txt which would be identical to bigfile.txt with the DOS command
-
- COPY /b a:big1 + b:big2 + big3 alsobig.txt
-
-
- Feedback is appreciated and may be sent to me at my CIS User ID 72210,17 or via
- US Snail:
-
- Charles Lazo III
- P.O. Box 452
- Hohenwald, TN 38462